#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../happiness-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy happiness-gateway "
cp ../happiness-gateway/target/happiness-gateway.jar ./happiness/gateway/jar

echo "begin copy happiness-auth "
cp ../happiness-auth/target/happiness-auth.jar ./happiness/auth/jar

echo "begin copy happiness-visual "
cp ../happiness-visual/happiness-monitor/target/happiness-visual-monitor.jar  ./happiness/visual/monitor/jar

echo "begin copy happiness-system "
cp ../happiness-modules/happiness-system/target/happiness-system.jar ./happiness/modules/system/jar

echo "begin copy happiness-oss "
cp ../happiness-modules/happiness-oss/target/happiness-oss.jar ./happiness/modules/file/jar

echo "begin copy happiness-job "
cp ../happiness-modules/happiness-job/target/happiness-job.jar ./happiness/modules/job/jar

echo "begin copy happiness-gen "
cp ../happiness-modules/happiness-gen/target/happiness-gen.jar ./happiness/modules/gen/jar

